﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
namespace ConfExpert.Forms.Destex.Satis
{
    public partial class Odemeler : XForm
    {
        public Odemeler()
        {
            InitializeComponent();
        }

        private void Odemeler_Load(object sender, EventArgs e)
        {
            gridView1.Init("DX_GetOdemeler");
            gridView1.AddDetailGrid(gridView2, "DX_OdemeId");

            gridView1.FormatAsNumber(1, "TutarTl", "Tutar");
            gridView2.FormatAsNumber(1, "TutarTl");

            gridView1.AddSummary("TutarTl");
            gridView2.AddSummary("TutarTl");

            gridView1.MakeReadOnly();
            gridView2.MakeReadOnly();

            gridView1.BestFitColumns();
            gridView2.BestFitColumns();

            splitContainerControl1.AutoSize();
        }
    }
}
